<template>
  <NewList :news="news" />
</template>

<script setup>
import NewList from "./NewList.vue";
import { onMounted, ref } from "vue";
import { getEntertainmentNews } from "../services/apiEntertainmentNew.js";

const news = ref([]);

onMounted(async () => {
  const entertainmentNews = await getEntertainmentNews();

  news.value = entertainmentNews;
});
</script>
